const app = getApp();
const db = wx.cloud.database();
Page({
    data: {
      videoList:null
    },
    
  onLoad: function (options) {

    let that = this;

    let cacheList =  wx.getStorageSync("videoList");
    if (cacheList)
    {
      that.setData({
        videoList: cacheList
      });
    }

    //查询视频类型 
    db.collection('video_category').get().then(res => {
      console.info(res);
      that.setData({
        videoList:res.data
      });

      wx.setStorageSync("videoList", res.data);
    })

  },
  onShareAppMessage: function () {

  }
});